#include<bits/stdc++.h>
using namespace std;
int n;
int a[100005];
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=0;i<n;i++)cin>>a[i];
    sort(a,a+n);
    int j=0;
    int ans=0;
    for(int i=0;i<n&&j<n; ){
        if(a[j]>a[i]){
            ans++;
            j++;
            i++;
        }
        else{
            j++;
        }
    }
    cout<<n-ans;
    return 0;
}
